package app;

public class ThreadTest  implements Runnable{
	ListDepo list = null;
	int index = -1;
	
	public void setList(ListDepo list){
		this.list = list;
	}
	public void setIndex(int value){
		index = value;
	}
	public double getSum(){
		return list.getSum(index);
	}
	
	public void run(){
		try{
			list.add100(index);
		}
		catch(Exception ex){
			return;
		}
	}

}
